package com.rpframework.website.friendly.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;

/**
 * 用户表
 * @author Andy.H
 * @Email spring.h@aliyun.com
 * @date 2015年12月14日 上午11:29:38
 */
@TableMapperAnnotation(tableName = "user", uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id") 
public class User extends Domain {

	private static final long serialVersionUID = 4178996028162534134L;
	
	@FieldMapperAnnotation 
	Integer id; 
	@FieldMapperAnnotation
	String nickName; 
	@FieldMapperAnnotation
	String userName; 
	@FieldMapperAnnotation
	String realName; 
	@FieldMapperAnnotation
	String headImg; 
	@FieldMapperAnnotation
	String contact; 
	@FieldMapperAnnotation 
	String password; 
	@FieldMapperAnnotation
	Integer roleType;
	@FieldMapperAnnotation
	Integer state; 
	@FieldMapperAnnotation
	Long loginTime; 
	@FieldMapperAnnotation
	Long lastLoginTime; 
	@FieldMapperAnnotation
	String loginIp; 
	@FieldMapperAnnotation
	String lastLoginIp; 
	@FieldMapperAnnotation
	Long createTime; 
	@FieldMapperAnnotation
	Long modifyTime;
	/**
	 * 个人签名
	 */
	@FieldMapperAnnotation
	String signName;
	/**
	 * 友邻号
	 */
	@FieldMapperAnnotation
	String friendlyNo;
	/**
	 * 二维码图片
	 */
	@FieldMapperAnnotation
	String qrCode;
	/**
	 * 性别
	 */
	@FieldMapperAnnotation
	Integer sex;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getRoleType() {
		return roleType;
	}

	public void setRoleType(Integer roleType) {
		this.roleType = roleType;
	}

	public Long getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Long loginTime) {
		this.loginTime = loginTime;
	}

	public Long getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Long lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Long modifyTime) {
		this.modifyTime = modifyTime;
	}

	/**
	 * @return the nickName
	 */
	public String getNickName() {
		return nickName;
	}

	/**
	 * @param nickName the nickName to set
	 */
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	/**
	 * @return the friendlyNo
	 */
	public String getFriendlyNo() {
		return friendlyNo;
	}

	/**
	 * @return the qrCode
	 */
	public String getQrCode() {
		return qrCode;
	}

	/**
	 * @return the sex
	 */
	public Integer getSex() {
		return sex;
	}

	/**
	 * @param friendlyNo the friendlyNo to set
	 */
	public void setFriendlyNo(String friendlyNo) {
		this.friendlyNo = friendlyNo;
	}

	/**
	 * @param qrCode the qrCode to set
	 */
	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(Integer sex) {
		this.sex = sex;
	}

	/**
	 * @return the signName
	 */
	public String getSignName() {
		return signName;
	}

	/**
	 * @param signName the signName to set
	 */
	public void setSignName(String signName) {
		this.signName = signName;
	}

	/**
	 * @return the state
	 */
	public Integer getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(Integer state) {
		this.state = state;
	} 

}
